<%--
  Created by IntelliJ IDEA.
  User: 娜娜
  Date: 2024/12/23
  Time: 21:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.milk.entity.Employees" %>
<html>
<head>
  <title>用户个人信息</title>
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/user_profile.css">
</head>
<body>
<div class="container">
  <h2>用户个人信息</h2>
  <%
    Employees employee = (Employees) session.getAttribute("employee");
    if (employee != null) {
  %>
  <p><strong>用户名：</strong><%=employee.getUsername()%></p>
  <p><strong>密码：</strong><%=employee.getPassword()%></p>
  <!-- 这里可以根据实际需求添加更多员工信息的展示，如员工ID等 -->
  <%
  } else {
  %>
  <p class="error-message">未获取到用户信息，请先登录。</p>
  <%
    }
  %>
  <a href="${pageContext.request.contextPath}/main_menu.jsp" class="return-button">返回主菜单</a>
</div>

<!-- 引入 JavaScript 文件 -->
<script src="${pageContext.request.contextPath}/js/user_profile.js"></script>
</body>
</html>